package cn.edu.xmu.oomall.customer.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author Jiawei Zheng
 * @date 2021-12-04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CartsVo {

    @NotNull(message="货品id不能为空")
    @ApiModelProperty(value = "货品id")
    Long productId;

    @ApiModelProperty(value = "数量")
    Long quantity;
}
